package net.osweb.crm.modules.tools.bean;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Filesharing entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tools_filesharing")
public class FileSharing implements java.io.Serializable {


	/**
	 * 
	 */
	private static final long serialVersionUID = 294708032520205443L;
	private Integer id;
	private Integer userid;
	private String subject;
	private String tag;
	private String description;
	private Timestamp createtime;
	private String path;
	private String filesize;
	private String filetype;
	private String ofilename;
	private String nfilename;
	private Integer isavailability;

	// Constructors

	/** default constructor */
	public FileSharing() {
	}

	/** full constructor */
	public FileSharing(Integer userid, String subject, String tag,
			String description, Timestamp createtime, String path,
			String filesize, String filetype, String ofilename,
			String nfilename, Integer isavailability) {
		this.userid = userid;
		this.subject = subject;
		this.tag = tag;
		this.description = description;
		this.createtime = createtime;
		this.path = path;
		this.filesize = filesize;
		this.filetype = filetype;
		this.ofilename = ofilename;
		this.nfilename = nfilename;
		this.isavailability = isavailability;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "userid")
	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	@Column(name = "subject")
	public String getSubject() {
		return this.subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	@Column(name = "tag")
	public String getTag() {
		return this.tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}

	@Column(name = "description")
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "createtime", length = 19)
	public Timestamp getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Timestamp createtime) {
		this.createtime = createtime;
	}

	@Column(name = "path")
	public String getPath() {
		return this.path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	@Column(name = "filesize", length = 110)
	public String getFilesize() {
		return this.filesize;
	}

	public void setFilesize(String filesize) {
		this.filesize = filesize;
	}

	@Column(name = "filetype", length = 10)
	public String getFiletype() {
		return this.filetype;
	}

	public void setFiletype(String filetype) {
		this.filetype = filetype;
	}

	@Column(name = "ofilename")
	public String getOfilename() {
		return this.ofilename;
	}

	public void setOfilename(String ofilename) {
		this.ofilename = ofilename;
	}

	@Column(name = "nfilename")
	public String getNfilename() {
		return this.nfilename;
	}

	public void setNfilename(String nfilename) {
		this.nfilename = nfilename;
	}

	@Column(name = "isavailability")
	public Integer getIsavailability() {
		return this.isavailability;
	}

	public void setIsavailability(Integer isavailability) {
		this.isavailability = isavailability;
	}

}